package com.lz.demo.log.log4j2.mongodb;

import com.mongodb.MongoClient;
import com.mongodb.MongoClientURI;

/**
 * @author lzz
 * @environment IntelliJ IDEA 2020.3.1
 * @projectName java-log
 * @date 2024/08/29 11:21
 * @description:
 */
public class MyMongoClientFactory {

    public static MongoClient getInstance(){
        MongoClientURI uri = new MongoClientURI("mongodb://admin:123456@192.168.101.210:27017/logs?authSource=admin");
        return new MongoClient(uri);
    }

}
